package com.dd.cloud.user.entity.educationvisit;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @author xt
 */
@Data
@EqualsAndHashCode
@Accessors(chain = true)
@Table(comment = "患教文章阅读次数")
public class PatientEducationArticleReadNum  implements Serializable {


    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Column(isKey = true, isAutoIncrement = true)
    private Integer id;


    /**
     * 用户id
     */
    @Column(comment = "用户id",length = 32)
    private Integer userId;

    /**
     * 用户类型 同登录端
     */
    @Column(comment = "用户类型",length = 4)
    private Integer userType;


    /**
     * 文章id
     */
    @Column(comment = "文章id",length = 32)
    private Integer articleId;


    /**
     * 状态
     */
    @Column(comment = "状态 -1.删除 1.正常",length = 4)
    private Integer status;


    /**
     * 创建时间
     */
    @Column(comment = "创建时间")
    private LocalDateTime createDate;


}
